package com.weic.easycache.framework.biz;

import java.sql.SQLException;

import com.j256.ormlite.dao.CloseableIterator;
import com.j256.ormlite.stmt.QueryBuilder;
import com.weic.easycache.framework.Param;
import com.weic.easycache.framework.json.JsonBase;

public abstract class AbsDbReadBiz<P extends Param, R> extends AbsBaseBiz<P, R> {

	@Override
	public abstract <T> String update(int taskId, CloseableIterator<T> iterator) throws SQLException;

	@Override
	public abstract <T, ID> void createQuery(int taskId, QueryBuilder<T, ID> queryBuilder) throws SQLException;

	@Override
	public abstract R getResult();

	////////////////////////////////////以下方法不会调用//////////////////////////////////////////
	@Override
	public <D> String update(int taskId, JsonBase<D> json, boolean bgTask) {
		return RESULT_OK;
	}
}
